######################################################################
# Copyright (C) 2011, 2012 Hewlett-Packard Development Company, L.P.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
######################################################################

TOP = ../../../..
VARS = $(TOP)/Makefile.conf
DEPS = $(TOP)/Makefile.deps
include $(VARS)

AGENT_DIR = ../../agent
TEST_AGENTS = ../agents/

REGRESSION = ./Functional.py
TEST_SRC = Functional.xml
TEST_DST = scheduler-Xunit.xml
TEST_SUITE_LIMIT = 120

all:
	@echo "nothing to do"

test: fossology_testconfig
	$(MAKE) -C $(TOP)/src
	$(MAKE) -C $(AGENT_DIR)
	$(MAKE) -C $(TEST_AGENTS) test
	$(REGRESSION) --tests=$(TEST_SRC) --results=$(TEST_DST) --longest=$(TEST_SUITE_LIMIT)

coverage:
	@echo "nothing to do"

clean:
	rm -f $(TEST_DST) *.pyc

.PHONY: all test coverage clean $(PHP_FILES) $(FO_LIB)

include $(DEPS)
